package com.kyivmohyla.kma2.test;


public final class Main {

    public static void main(String[] args) {
        String spaces = "Bla    name";
        System.out.println(spaces.replaceAll("\\s+", " "));

    }
}
